package com.example.fms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.fms.dto.resp.RoleRightDTO;
import com.example.fms.entity.Right;
import com.example.fms.entity.Role;
import com.example.fms.entity.UserRole;

import java.util.List;

public interface RoleService extends IService<Role> {
    List<RoleRightDTO> getRoles();

    Boolean rolesPost(RoleRightDTO req);

    RoleRightDTO getRolesById(Long id);

    UserRole getRolesByUserId(Long id);


    Boolean updateRoleById(RoleRightDTO req,Long id);

    Boolean deleteRoleById(Long id);

    Boolean saveRights(Long id, RoleRightDTO req);

    Boolean deleteRoleRightsById(Long id, Long rightId);

    Role selectById(Long roleId);
}
